#define  _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
int main() {
    int n;
    scanf("%d", &n);
    int sum = 0;
    while (n--) {
        int num;
        scanf("%d", &num);
        sum += num;
    }
    printf("%d", sum);
}
